From: Debian Science Maintainers Date: Mon, 16 Mar 2026 05:12:29 +0000 (+0100) Subject: matplotlib_nullptr_s390x X-Git-Tag: archive/raspbian/9.5.2+dfsg4-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:bartha.m.judit%40gmail.com//%22mailto:i18n-csb%40linuxcsb.org/%22/%22http:/www.example.com/%22mailto:bartha.m.judit%40gmail.com/%22mailto:i18n-csb%40linuxcsb.org/%22?a=commitdiff_plain;h=878bbb1b3a45b03928e34e45334a77363385df88;p=vtk9.git matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index d8261ac29..dcff6556f 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1029,6 +1029,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox { unsigned char* ptr = static_cast(image->GetScalarPointer(col, row, 0)); + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd)